#define _CRT_SECURE_NO_WARNINGS
#include"Zhan.h"
void STtest01()
{
	STnode s;
	STInit(&s);

	STPush(&s, 1);
	STPush(&s, 2);
	STPush(&s, 3);
	STPush(&s, 4);
	printf("size:%d\n", STSize(&s));

	while (!StackEmpty(&s))
	{
		STdatatype data = StackTop(&s);
		printf("%d\n", data);
		STBack(&s);
	}
	printf("size:%d\n", STSize(&s));

	STdestroy(&s);
}
int main()
{
	STtest01();
	return 0;
}